package practice2;

public class LinkedListQueueDemo {
	public static void main(String[] args) {
		LinkedListQueue linkedListQueue = new LinkedListQueue();
		linkedListQueue.setMaxSize(3);
		linkedListQueue.offer(1);
		linkedListQueue.offer(2);
		linkedListQueue.offer(3);
		linkedListQueue.offer(4);
		linkedListQueue.list();
		System.out.println("---------------------");
		System.out.println("出栈元素为："+linkedListQueue.poll());
		System.out.println("出栈元素为："+linkedListQueue.poll());
		System.out.println("出栈元素为："+linkedListQueue.poll());
//		linkedListQueue.poll();
		linkedListQueue.list();
	}
	
}
